const express = require('express')
const router = express.Router()

const goods_routerHandle = require('../router_handle/goods_routerHandle')

// 添加新商品
router.post('/addGoods', goods_routerHandle.addGoods)


// 获取前 7 热门商品
router.get('/getPopularGoods', goods_routerHandle.getPopularGoods)


// 获取走马灯信息
router.get('/getBigGoodsInfo', goods_routerHandle.getBigGoodsInfo)


// 获取所有商品信息
router.get('/getAllgoodsInfo', goods_routerHandle.getAllgoodsInfo)


// 获取管理员自己上传的商品
router.post('/getAdministratorGoods', goods_routerHandle.getAdministratorGoods)


// 获取商品的类别
router.get('/getGoodsCategory', goods_routerHandle.getGoodsCategory)


// 当用户查看商品后增加商品的点击量
router.post('/addNumberHits', goods_routerHandle.addNumberHits)




module.exports = router
